import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import '@/styles/index.scss'
import ElementPlus from 'element-plus'
import { TroisJSVuePlugin } from 'troisjs'
// import { WebGLRenderer } from 'three'
import { autoImport, InjectElectron } from '@/plugins/index'

const logAPI: QsctAPI = {
  ncss: 'ncss',
  name: 'qsctAPI',
  logger () {
    console.log(Date.now())
  }
}
window.qsctAPI = logAPI

createApp(App).use(router).use(ElementPlus).use(TroisJSVuePlugin).use(autoImport).use(InjectElectron).mount('#app')
